package com.lz.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RefreshScope
public class NacosCandDController {
    @Value("${Cname}")
    private String name;

    @Value("${Sname}")
    private String Sname;

    @GetMapping("/testC")
    public String cAndD(){
        System.out.println(name+Sname);

        return "testC";
    }
}
